package edu.kjxy.worker0322;

public class worker02 {

	public static void main(String[] args) {
		int[] array = {3, 6, 54, 8, 4, 2, 101, 4, 11, 22, 33, 55};
		int sum = 0;
		for (int i = 0; i < array.length; i++) {
			sum += array[i];
		}
		int avg = sum / array.length;
		System.out.println("sum = %d, avg = %d".formatted(sum, avg));
	}

}
